import React, { memo, useState } from 'react'

const App = memo(() => {
  const [ count, setCount ] = useState(0)
  return (
    <div>
      <div>当前计数:{ count }</div>
      <button onClick={e => setCount(count+1)}>+1</button>
    </div>
  )
})

export default App